package com.nuanshui.heatedloan.credit.service;

import com.nuanshui.framework.consts.TransactionManagerType;
import com.nuanshui.heatedloan.constant.ServiceConstant;
import com.nuanshui.heatedloan.credit.dal.mapper.CustomerBlackListMapper;
import com.nuanshui.heatedloan.credit.facade.CustomerBlackListService;
import com.nuanshui.heatedloan.credit.vo.CustomerBlackListVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by wangxw on 2017/7/13.
 */
@Transactional(readOnly=true,value= TransactionManagerType.CREDIT_TRANSACTION_MANAGER)
@Service(ServiceConstant.CUSTOMERBLACKLISTSERVICE)
public class CustomerBlackListServiceImpl implements CustomerBlackListService {

    @Autowired
    private CustomerBlackListMapper customerBlackListMapper;

    public CustomerBlackListVO loadVO(String userId){
        return customerBlackListMapper.loadVO(userId);
    }
}
